# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=darkd0rk3r
pkgver=1.0
pkgrel=8
pkgdesc='Python script that performs dork searching and searches for local file inclusion and SQL injection errors.'
arch=('any')
url='http://packetstormsecurity.com/files/117403/Dark-D0rk3r-1.0.html'
license=('custom:unknown')
depends=('python2')
groups=('blackarch' 'blackarch-exploitation' 'blackarch-webapp')
source=("$pkgname::https://dl.packetstormsecurity.net/UNIX/scanners/$pkgname-$pkgver.py.txt")
sha512sums=('0e3cdf30325494a89c289bbe38fea62b1723012fc083dab8bdd542423e2976d40add403c6e4b07ddb56758ef559e1586b991c11f7b57af4dd713164b08356ec5')

prepare() {
  sed -i '1s/python/python2/' *.py
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

